import { Column, Entity, PrimaryColumn } from 'typeorm';
import Decimal from "decimal.js";

@Entity({ name: 'user_list' })
export class UserListEntity{
    @PrimaryColumn('varchar', { name: 'user_id', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    userId: string;

    @Column({ name: 'user_account', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    userAccount: string;

    @Column({ name: 'user_password', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    userPassword: string;

    @Column({ name: 'contact', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    contact: string;

    @Column({ name: 'remark', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    remark: string;

    @Column({ name: 'create_date', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    createDate: string;

    @Column({ name: 'balance',type: 'decimal', precision: 16, scale: 6 })
    balance: string;

    @Column('int', { name: 'status' })
    status: number;


}
